advancement revoke @s only stealth:offer_trash
function math:vector/getforward
data modify storage math input set from storage math Forward
tag @s add trash_offerer
execute as @e[tag=crow,tag=!crow_glow] at @s run function stealth:offer_trash/select
tag @n[tag=offer_possible] add selected_offer
tag @e[tag=offer_possible] remove offer_possible
execute if entity @e[tag=selected_offer] run function stealth:offer_trash/success
execute unless entity @e[tag=selected_offer] run function stealth:stop_eating
tag @s remove trash_offerer
tag @e[tag=selected_offer] remove selected_offer